<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <form th:id="form-data" th:action="@{/userGame/add}" th:object="${userGame}" method="post">
                <div class="panel-body">
                    <div class="form-group clear">
                        <label class="col-sm-1 control-label search-label">比赛场次</label>
                        <div class="col-sm-4 col-sm-inp">
                            <input type="text" class="form-control" th:field="*{whatScene}" maxlength="128" onfocus="clearErrorMsg()" placeholder="请输入比赛场次" />
                        </div>
                    </div>
                   <!-- <div class="form-group clear">
                        <label class="col-sm-1 control-label search-label">比赛时间</label>
                        <div class="col-sm-4 col-sm-inp">
                            <input type="date" th:field="*{gameDate}" placeholder=""/>

                        </div>
                    </div>-->
                    <div class="form-group clear">
                        <label class="col-sm-1 control-label search-label">比赛结果</label>
                        <div class="col-sm-4 col-sm-inp">
                            <input type="radio" th:field="*{gameStatus}" th:value="0" placeholder="" />胜利
                            <input type="radio" th:field="*{gameStatus}" th:value="1" placeholder="" />失败
                        </div>
                    </div>
                    <div class="form-group clear">
                        <label class="col-sm-1 control-label search-label">所需积分</label>
                        <div class="col-sm-4 col-sm-inp">
                            <input type="text" class="form-control" th:field="*{integral}" maxlength="128" onfocus="clearErrorMsg()" placeholder="请输入赢取或扣减积分" />
                        </div>
                    </div>
                        <input th:type="hidden" th:field="*{activityId}" placeholder=""/>
                        <input th:type="hidden" th:field="*{userId}" placeholder=""/>
                    <input th:type="hidden" id="editType" name="editType" th:value="${editType}" placeholder="">

                    <div class="clear errorMsg" id="errorMsg"></div>

                    <div class="panel-heading">
                        <div>
                            <button type="button" class="btn btn-sm btn-warning"
                                    th:onclick="'javascript:loadListData(\'' + @{/activity/list} + '\')'">返回</button>&emsp;
                            <button type="button" class="btn btn-sm btn-success" onclick="checkParams()">确定</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script th:src="@{/manager/js/userGame.js}"></script>
</html>
